package com.heima.model.comment.dtos;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class CommentSaveDTO {
    /**
     * 文章id
     */
    @NotNull
    private Long articleId;
    /**
     * 评论内容
     */
    @NotBlank
    @Max(value = 140, message = "评论长度不能大于140字符")
    private String content;
}